<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<?php echo ($headHtml); ?>
<body>
<?php echo ($head_navlist); ?>
<!-- banner -->
<a name="a"></a>
<div class="banner">
    <div class="swiper-wrapper">
        <?php
 $_id = intval($headInfo[banner_select_id]); $where = array('aid'=> $_id, 'status' => 1); $limit = "4"; $abc_cate = M('abc')->find($_id); if ($abc_cate) { $limit = empty($limit) ? $abc_cate['num'] : $limit; $where['starttime'] = array('lt', time()); $where['endtime'] = array('gt', time()); $_abc = M('abcDetail')->where($where)->order('sort')->limit($limit)->select(); }else { $_abc = array(); } if (empty($_abc)) { $_abc = array(); } foreach($_abc as $autoindex => $abc): $abc['width'] = $abc_cate['width']; $abc['height'] = $abc_cate['height']; ?><div class="swiper-slide"><a href="javascript:void(0)"><img src="<?php echo ($abc[content]); ?>" alt="" /></a></div><?php endforeach;?>
    </div>
    <!-- Add Pagination -->
    <div class="swiper-pagination"></div>
</div>
<!-- 主体部分 -->
<section class="content">
    <!-- 旗下品牌 -->
    <section class="">
        <div class="index_brand">
            <header class="clear">
                <hr class="fl index_hr left_hr">
                <h3><sup>B</sup>旗下品牌</h3>
                <hr class="fr index_hr right_hr">
            </header>
            <ul class="brand_list clear">
                <?php $i=0; ?>
                <?php
 $_typeid = $brandId; if($_typeid == -1) $_typeid = I('cid', 0, 'intval'); $_fieldflag = 0; if($_fieldflag == 0){ $_navlist = get_category(1); }else{ $_navlist = M('category')->where(['status'=>1])->order('sort asc')->select(); } if($_typeid == 0) { $_navlist = Common\Lib\Category::toLayer($_navlist); }else { $_navlist = Common\Lib\Category::toLayer($_navlist, 'child', $_typeid); } foreach($_navlist as $autoindex => $navlist): $navlist['url'] = get_url($navlist); ?><li class="<?=($i%5==3||$i%5==4)?'brand_list_special':''?>">
                        <a href="<?=$navlist[brand_url]?>" target="view_window">
                            <?php
 $_typeid = $navlist[id]; $_keyword = ""; $_arcid = ""; if($_typeid == -1) $_typeid = I('cid', 0, 'intval'); if ($_typeid>0 || substr($_typeid,0,1) == '$') { $ids = Common\Lib\Category::getChildsId(get_category(), $_typeid, true); $where = array('picture.status' => 0, 'picture.cid'=> array('IN',$ids)); }else { $where = array('picture.status' => 0); } if ($_keyword != '') { $where['picture.title'] = array('like','%'.$_keyword.'%'); } if (!empty($_arcid)) { $where['picture.id'] = array('IN', $_arcid); } if (2 > 0) { $where['_string'] = 'picture.flag & 2 = 2 '; } if (0 > 0) { $count = D2('ArcView','picture')->where($where)->count(); $ename = I('e', '', 'htmlspecialchars,trim'); if (!empty($ename) && C('URL_ROUTER_ON') == true) { $param['p'] = I('p', 1, 'intval'); $param_action = '/'.$ename; }else { $param = array(); $param_action = ''; } $thisPage = new \Common\Lib\Page($count, 0, $param, $param_action); $thisPage->rollPage = 5; $thisPage->setConfig('theme'," %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%"); $limit = $thisPage->firstRow. ',' .$thisPage->listRows; $page = $thisPage->show(); }else { $limit = "10"; } $_piclist = D2('ArcView','picture')->nofield('')->where($where)->order("id DESC")->limit($limit)->select(); if (empty($_piclist)) { $_piclist = array(); } foreach($_piclist as $autoindex => $piclist): $_jumpflag = ($piclist['flag'] & B_JUMP) == B_JUMP? true : false; $piclist['url'] = get_content_url($piclist['id'], $piclist['cid'], $piclist['ename'], $_jumpflag, $piclist['jumpurl']); if(0) $piclist['title'] = str2sub($piclist['title'], 0, 0); if(0) $piclist['description'] = str2sub($piclist['description'], 0, 0); if(isset($piclist['pictureurls'])){ $piclist['pictureurls'] = get_picture_array($piclist['pictureurls']); }; ?><img src="<?php echo ($piclist[litpic]); ?>" alt="" /><?php endforeach;?>
                            <div class="brand_list_cover">
                                <div>
                                    <img src="<?php echo ($navlist["catpic"]); ?>" alt="" />
                                </div>
                            </div>
                        </a>
                        <div class="brand_list_info">
                            <p><?php echo ($navlist["name"]); ?></p>
                            <button type="button">立即咨询</button>
                        </div>
                    </li>
                    <?php $i++; endforeach;?>
            </ul>
            <a name="b"></a>
            <button class="more_btn" type="button"><a href="<?php echo U('Post/index?catalogId='.$brandId);?>">查看更多 &gt;</a></button>
        </div>
    </section>
    <!-- 公司介绍 -->
    <section class="box index_company">
        <div class="index_brand">
            <header class="clear">
                <hr class="fl index_hr left_hr">
                <h3><sup>C</sup><?php echo ($compandInfo[name]); ?></h3>
                <hr class="fr index_hr right_hr">
            </header>
            <a name="c"></a>
            <div class="clear">
                <article class="index_company_txt fl">
                    <?php echo ($compandInfo[content]); ?>
                </article>
                <div  class="index_company_img fr">
                    <img src="<?php echo ($compandInfo[catpic]); ?>" alt="" />
                </div>
            </div>
            <button class="more_btn" type="button"><a href="/pn_<?=$compandTop[ename]?>">查看更多 &gt;</a></button>
        </div>
    </section>
    <!-- 新闻资讯 -->
    <section class="box index_news_container">
        <div class="index_news"></div>
        <div class="index_brand">
            <header class="clear">
                <hr class="fl index_hr left_hr">
                <h3><sup>N</sup>新闻资讯</h3>
                <hr class="fr index_hr right_hr">
            </header>
            <ul class="index_news_list clear">
                <a name="d"></a>
                <?php
 $_typeid = $newsId; $_keyword = ""; $_arcid = ""; if($_typeid == -1) $_typeid = I('get.cid', 0, 'intval'); if ($_typeid>0 || substr($_typeid,0,1) == '$') { $ids = Common\Lib\Category::getChildsId(get_category(), $_typeid, true); $where = array('article.status' => 0, 'article.cid'=> array('IN',$ids)); }else { $where = array('article.status' => 0); } if ($_keyword != '') { $where['article.title'] = array('like','%'.$_keyword.'%'); } if (!empty($_arcid)) { $where['article.id'] = array('IN', $_arcid); } if (2 > 0) { $where['_string'] = 'article.flag & 2 = 2 '; } if (0 > 0) { $count = D2('ArcView','article')->where($where)->count(); $ename = I('e', '', 'htmlspecialchars,trim'); if (!empty($ename) && C('URL_ROUTER_ON') == true) { $param['p'] = I('p', 1, 'intval'); $param_action = '/'.$ename; }else { $param = array(); $param_action = ''; } $thisPage = new \Common\Lib\Page($count, 0, $param, $param_action); $thisPage->rollPage = 5; $thisPage->setConfig('theme'," %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%"); $limit = $thisPage->firstRow. ',' .$thisPage->listRows; $page = $thisPage->show(); }else { $limit = "9"; } $_artlist = D2('ArcView','article')->nofield('content')->where($where)->order("id DESC")->limit($limit)->select(); if (empty($_artlist)) { $_artlist = array(); } foreach($_artlist as $autoindex => $artlist): $_jumpflag = ($artlist['flag'] & B_JUMP) == B_JUMP? true : false; $artlist['url'] = get_content_url($artlist['id'], $artlist['cid'], $artlist['ename'], $_jumpflag, $artlist['jumpurl']); if(0) $artlist['title'] = str2sub($artlist['title'], 0, 0); if(0) $artlist['description'] = str2sub($artlist['description'], 0, 0); ?><li>
                        <span class="index_news_list_time"><?=date('m-d',$artlist[publishtime])?></span>
                        <div class="index_news_list_img"><img src="<?php echo ($artlist["litpic"]); ?>" alt=""></div>
                        <p class="index_news_list_txt"><?php echo ($artlist[title]); ?></p>
                    </li><?php endforeach;?>
            </ul>
            <button class="more_btn" type="button"><a href="<?php echo U('Post/index?catalogId='.$newsId);?>">查看更多 &gt;</a></button>
        </div>
    </section>
    <!-- 团队风采 -->
    <section class="box index_news_container all_animate show">
        <div class="index_team "></div>
        <div class="index_brand">
            <header class="clear">
                <hr class="fl index_hr left_hr">
                <h3><sup>T</sup><?php echo ($teamInfo[name]); ?></h3>
                <hr class="fr index_hr right_hr">
            </header>
            <?php $imgs = array(); ?>
            <?php
 $_typeid = $teamInfo[id]; $_keyword = ""; $_arcid = ""; if($_typeid == -1) $_typeid = I('cid', 0, 'intval'); if ($_typeid>0 || substr($_typeid,0,1) == '$') { $ids = Common\Lib\Category::getChildsId(get_category(), $_typeid, true); $where = array('picture.status' => 0, 'picture.cid'=> array('IN',$ids)); }else { $where = array('picture.status' => 0); } if ($_keyword != '') { $where['picture.title'] = array('like','%'.$_keyword.'%'); } if (!empty($_arcid)) { $where['picture.id'] = array('IN', $_arcid); } if (2 > 0) { $where['_string'] = 'picture.flag & 2 = 2 '; } if (0 > 0) { $count = D2('ArcView','picture')->where($where)->count(); $ename = I('e', '', 'htmlspecialchars,trim'); if (!empty($ename) && C('URL_ROUTER_ON') == true) { $param['p'] = I('p', 1, 'intval'); $param_action = '/'.$ename; }else { $param = array(); $param_action = ''; } $thisPage = new \Common\Lib\Page($count, 0, $param, $param_action); $thisPage->rollPage = 5; $thisPage->setConfig('theme'," %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%"); $limit = $thisPage->firstRow. ',' .$thisPage->listRows; $page = $thisPage->show(); }else { $limit = "10"; } $_piclist = D2('ArcView','picture')->nofield('')->where($where)->order("id DESC")->limit($limit)->select(); if (empty($_piclist)) { $_piclist = array(); } foreach($_piclist as $autoindex => $piclist): $_jumpflag = ($piclist['flag'] & B_JUMP) == B_JUMP? true : false; $piclist['url'] = get_content_url($piclist['id'], $piclist['cid'], $piclist['ename'], $_jumpflag, $piclist['jumpurl']); if(0) $piclist['title'] = str2sub($piclist['title'], 0, 0); if(0) $piclist['description'] = str2sub($piclist['description'], 0, 0); if(isset($piclist['pictureurls'])){ $piclist['pictureurls'] = get_picture_array($piclist['pictureurls']); }; foreach($piclist[pictureurls] as $key => $data):?>
                       <?php array_push($imgs,$data[url]) ?>
                <?php endforeach; endforeach;?>
            <ul class="index_team_list_1">
                <?php foreach($imgs as $key => $data):?>
                    <?php if($key<3): ?>
                        <li class="index_team_list_1_li_<?=$key+1?>" style="background-image: url(<?=$data?>);"></li>
                    <?php endif; ?>
                <?php endforeach; ?>
            </ul>
            <ul class="index_team_list_1 index_team_list_2 box">
                <?php foreach($imgs as $key => $data):?>
                    <?php if($key>=3&&$key<8): ?>
                        <li class="<?=$key%2==0?'index_team_list_2_li':''?>" style="background-image: url(<?=$data?>);"></li>
                    <?php endif; ?>
                <?php endforeach; ?>
            </ul>
        </div>
    </section>
    <!-- 公司介绍 -->
    <a name="e"></a>
    <section class="box index_company">
        <div class="index_brand" style="padding-bottom: 50px">
            <header class="clear">
                <hr class="fl index_hr left_hr">
                <h3><sup>C</sup>合作展示</h3>
                <hr class="fr index_hr right_hr">
            </header>
            <div class="index_cooperation_list">
                <div class="swiper-wrapper">
                    <?php
 $_typeid = $JoinId; $_keyword = ""; $_arcid = ""; if($_typeid == -1) $_typeid = I('get.cid', 0, 'intval'); if ($_typeid>0 || substr($_typeid,0,1) == '$') { $ids = Common\Lib\Category::getChildsId(get_category(), $_typeid, true); $where = array('article.status' => 0, 'article.cid'=> array('IN',$ids)); }else { $where = array('article.status' => 0); } if ($_keyword != '') { $where['article.title'] = array('like','%'.$_keyword.'%'); } if (!empty($_arcid)) { $where['article.id'] = array('IN', $_arcid); } if (0 > 0) { $where['_string'] = 'article.flag & 0 = 0 '; } if (0 > 0) { $count = D2('ArcView','article')->where($where)->count(); $ename = I('e', '', 'htmlspecialchars,trim'); if (!empty($ename) && C('URL_ROUTER_ON') == true) { $param['p'] = I('p', 1, 'intval'); $param_action = '/'.$ename; }else { $param = array(); $param_action = ''; } $thisPage = new \Common\Lib\Page($count, 0, $param, $param_action); $thisPage->rollPage = 5; $thisPage->setConfig('theme'," %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%"); $limit = $thisPage->firstRow. ',' .$thisPage->listRows; $page = $thisPage->show(); }else { $limit = "20"; } $_artlist = D2('ArcView','article')->nofield('content')->where($where)->order("id DESC")->limit($limit)->select(); if (empty($_artlist)) { $_artlist = array(); } foreach($_artlist as $autoindex => $artlist): $_jumpflag = ($artlist['flag'] & B_JUMP) == B_JUMP? true : false; $artlist['url'] = get_content_url($artlist['id'], $artlist['cid'], $artlist['ename'], $_jumpflag, $artlist['jumpurl']); if(0) $artlist['title'] = str2sub($artlist['title'], 0, 0); if(0) $artlist['description'] = str2sub($artlist['description'], 0, 0); ?><div class="swiper-slide">
                            <div class="index_cooperation_list_li">
                                <div class="index_news_list_img"><img src="<?php echo ($artlist[litpic]); ?>" alt=""></div>
                                <p class=""><?php echo ($artlist[title]); ?></p><p style="padding-bottom: 20px">成功签约</p>
                            </div>
                        </div><?php endforeach;?>
                </div>
                <div class="index_cooperation_page index_cooperation_prev"></div>
                <div class="index_cooperation_page index_cooperation_next"></div>
            </div>
        </div>
    </section>
</section>
<?php echo ($footHtml); ?>
<script>
    swiperBanner();
    if($(window).width() > 425){
        var show = new Swiper('.index_cooperation_list', {
            loopAdditionalSlides : 1,
            slidesPerView: 3,
            slidesPerColumn: 2,
            spaceBetween: 30,
            nextButton: '.index_cooperation_next',
            prevButton: '.index_cooperation_prev'
        });
    }
</script>
</body>
</html>